package vn.vfriends.vcms.admin.service;

import java.io.Serializable;
import java.util.List;
import vn.vfriends.vcms.admin.model.Category;

/**
 *
 * @author tuan@vfriends.vn
 */
public interface CategoryService extends Serializable {

    public void createCategory(Category category) throws Exception;
    
    public void editCategory(Category category) throws Exception;
    
    public void destroyCategory(Long id) throws Exception;
    
    public List<Category> findCategories();
    
    public List<Category> findParentCategories();
    
    public List<Category> findOrderedCategories(Category parent);
    
    public List<Category> findCategories(int maxResults, int firstResult);
    
    public Category findCategory(Long id);
    
    public Category findCategoryByName(String name);
    
    public int getCategoryCount();
}
